package ModelLayer;


/**
 * Write a description of class DVD here.
 * 
 * @author Rasmus Andersen Borup 
 * @version 
 */
public class DVD
{
    // instance variables
    private String title;
    private static int dvdNo = 0;
    private int dvdId;
    private String aquireDate;
    private double aquirePrice;
    
    /**
     * Constructor for objects of class DVD
     */
    public DVD(String title, String aquireDate, double aquirePrice)
    {
        // initialising instance variables
        this.title = title;
        dvdNo++;
        dvdId = dvdNo;
        this.aquireDate = aquireDate;
        this.aquirePrice = aquirePrice;
        
    }
    
    /**
     * Returns value of variable title
     */
    public String getTitle()
    {
        return title;
    }
    
    /**
     * returns value of variable dvdId
     */
    public long getDvdId()
    {
        return dvdId;
    }
    
    /**
     * Returns value of variable aquireDate
     */
    public String getAquireDate()
    {
        return aquireDate;
    }
    
    /**
     * Returns value of variable aquirePrice
     */
    public double getAquirePrice()
    {
        return aquirePrice;
    }
    
    /**
     * Sets a new title for variable title
     */
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    public void setAquireDate(String date)
    {
        aquireDate = date;
    }
    
    public void setAquirePrice(double aquirePrice)
    {
        this.aquirePrice = aquirePrice;
    }
    
    public void printInfo()
    {
        System.out.println("Title: " + title);
        System.out.println("Id: " + dvdId);
        System.out.println("Aquired: " + aquireDate);
        System.out.println("Price: " + aquirePrice);
    }
}
